#include<bits/stdc++.h>
using namespace std;
int main()
{
	cin.tie(0);
	cout.tie(0);
	ios::sync_with_stdio(0);
	int x,y;cin>>x>>y;
	if(x>0&&y>0){
		if(x<y){
			int temp=x;
			x=y;
			y=temp;
		}
		cout<<x<<" "<<x+y<<"\n"<<"^_^";
	}
	if(x>0&&y<0){
		cout<<x<<" ";
		if(x+y>0){
		cout<<x+y<<"\n"<<"T_T";
		}
		if(x+y<0){
			cout<<"0"<<"\n"<<"T_T";
		}
		if(x+y==0){
			cout<<x+y<<"\n"<<"T_T";
		}
	}
	if(x<0&&y>0){
		cout<<y<<" ";
		if(x+y>0){
			cout<<x+y<<"\n"<<"T_T";
		}
		if(x+y<0){
			cout<<"0"<<"\n"<<"T_T";
		}
		if(x+y==0){
			cout<<x+y<<"\n"<<"T_T";
		}
	}
	if(x<0&&y<0){
		cout<<"0 0\n";
		cout<<"-_-";
	}
	return 0;
}